package com.biz.primus.base.event;

import org.springframework.context.ApplicationEvent;

/**
 * 继承本类的事件会经过事件总线
 *
 * @author yanweijin
 * @date 2017/9/14
 */
public class RemoteEvent extends ApplicationEvent {

    private static final Object TRANSIENT_SOURCE = new Object();

    private static final long serialVersionUID = 5205575507265751949L;

    protected RemoteEvent() {
        this(TRANSIENT_SOURCE, null, null);
    }

    protected RemoteEvent(Object source, String originService, String destinationService) {
        super(source);
    }

    protected RemoteEvent(Object source, String originService) {
        this(source, originService, null);
    }
}
